package cn.yunhe.crm.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

public class Contract {
    private Integer id;

    private String name;

    private Integer aproduct=0;

    private Integer bproduct=0;

    private Integer cproduct=0;

    private Integer oid;

    private Integer servicetype;

    private Integer purpose;

    private Integer contracttype;

    private Integer amount;

    private Integer paytype;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date deadline;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date signdate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date begindate;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date enddate;

    private String aset;

    private String bset;

    private String remark;

    private Integer delstate=0;

    private String file;

    private Integer checkstate;
    
    private Organization organization;
    

    private Aproduct producta;
    private Bproduct productb;
    private Cproduct productc;
    
    public Aproduct getProducta() {
		return producta;
	}

	public void setProducta(Aproduct producta) {
		this.producta = producta;
	}

	public Bproduct getProductb() {
		return productb;
	}

	public void setProductb(Bproduct productb) {
		this.productb = productb;
	}

	public Cproduct getProductc() {
		return productc;
	}

	public void setProductc(Cproduct productc) {
		this.productc = productc;
	}

	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getAproduct() {
        return aproduct;
    }

    public void setAproduct(Integer aproduct) {
        this.aproduct = aproduct;
    }

    public Integer getBproduct() {
        return bproduct;
    }

    public void setBproduct(Integer bproduct) {
        this.bproduct = bproduct;
    }

    public Integer getCproduct() {
        return cproduct;
    }

    public void setCproduct(Integer cproduct) {
        this.cproduct = cproduct;
    }

    public Integer getOid() {
        return oid;
    }

    public void setOid(Integer oid) {
        this.oid = oid;
    }

    public Integer getServicetype() {
        return servicetype;
    }

    public void setServicetype(Integer servicetype) {
        this.servicetype = servicetype;
    }

    public Integer getPurpose() {
        return purpose;
    }

    public void setPurpose(Integer purpose) {
        this.purpose = purpose;
    }

    public Integer getContracttype() {
        return contracttype;
    }

    public void setContracttype(Integer contracttype) {
        this.contracttype = contracttype;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Integer getPaytype() {
        return paytype;
    }

    public void setPaytype(Integer paytype) {
        this.paytype = paytype;
    }

    public Date getDeadline() {
        return deadline;
    }

    public void setDeadline(Date deadline) {
        this.deadline = deadline;
    }

    public Date getSigndate() {
        return signdate;
    }

    public void setSigndate(Date signdate) {
        this.signdate = signdate;
    }

    public Date getBegindate() {
        return begindate;
    }

    public void setBegindate(Date begindate) {
        this.begindate = begindate;
    }

    public Date getEnddate() {
        return enddate;
    }

    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

    public String getAset() {
        return aset;
    }

    public void setAset(String aset) {
        this.aset = aset == null ? null : aset.trim();
    }

    public String getBset() {
        return bset;
    }

    public void setBset(String bset) {
        this.bset = bset == null ? null : bset.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public Integer getDelstate() {
        return delstate;
    }

    public void setDelstate(Integer delstate) {
        this.delstate = delstate;
    }

    public String getFile() {
        return file;
    }

    public void setFile(String file) {
        this.file = file == null ? null : file.trim();
    }

    public Integer getCheckstate() {
        return checkstate;
    }

    public void setCheckstate(Integer checkstate) {
        this.checkstate = checkstate;
    }
}